/** @file Math.js
@brief The math functions used by the framework

The calculation formulas to manage sizes, defaults, dimensions etc
can be found in this library divided in sections.
Are excluded from the Math library the MapView functions and the Geometry functions
The math methods are grouped following their primary usag.e If a method has multiple
applications they are documented on top of the definition.
Math.js is a stateless library

@authorname \n
@licenseversion \n
@actualversion - @dateupdate

@licensenote
*/
.pragma library

/*
  Switch properties and methods
  The framework uses several switch methods and elements to manage the
  switch and multi switch functionalities whose preset parameters are
  in this section.
  */
var sw_TxtColor =  "#363636" // Label text color
var sw_popBackColor = "#fbfadf";
var sw_popBorderColor = "#f7f7f7";
var sw_TitleColor = "#363636";

/*
  Message Box builder parameters
*/
var mb_formBorder = 3;
var mb_fieldSpacing = 1;
var mb_formSpacing = 5;
var mb_fieldHeight = 55;
var mb_BtnHeight = 45;
var mb_textHeight = 35;
var mb_formRadius = 5;
// Calculate the width of the message box button based on the message box size
function getMsgBoxBtnWidth(size) { return size * 0.60; }
// Calculate the height of the message box button based on the message box size
function getMsgBoxBtnHeight(size) { return mb_BtnHeight; }
// Calculate the height of the message box button based on the message box size
function getMsgBoxBtnBottomMargin() { return mb_formBorder * 2; }
